Fix --echo when echo-keystrokes nil
authorjustbur <justin@burkett.cc>
Thu, 26 May 2016 15:16:43 +0000 (11:16 -0400)
committerjustbur <justin@burkett.cc>
Thu, 26 May 2016 15:16:43 +0000 (11:16 -0400)
which-key.el

index 477df09a9bfb50f17060f03fa0e7c5cdd8cf6579..92789e40fbac8dc6c8d429e5359e2974725d3050 100644 (file)
@@ -1619,7 +1619,9 @@ is the width of the live window."
 Slight delay gets around evil functions that clear the echo
 area."
   (let* ((minibuffer (eq which-key-popup-type 'minibuffer))
-         (delay (if minibuffer 0.2 (+ echo-keystrokes 0.001)))
+         (delay (if minibuffer
+                    0.2
+                  (+ (or echo-keystrokes 0) 0.001)))
          message-log-max)
     (unless minibuffer (message "%s" text))
     (run-with-idle-timer